package com.xjy.system.domain.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 预付账款信息添加对象 sys_credit_advance
 *
 * @author xjy
 * @date 2022-02-10
 */
@Data
@ApiModel("预付账款信息添加对象")
public class SysCreditAdvanceAddBo {


	@ApiModelProperty("项目id")
	@NotNull(message = "项目id不能为空")
	private Long projId;

	@ApiModelProperty("项目名称")
	private String projName;

	@ApiModelProperty("合同id")
	@NotNull(message = "合同id不能为空")
	private Long contractId;

	@ApiModelProperty("合同名称")
	@NotNull(message = "合同名称不能为空")
	private String contractName;

	@ApiModelProperty("结算项目id")
	@NotNull(message = "结算项目id不能为空")
	private Long resultProjId;
	@ApiModelProperty("结算项目名称")
	private String resultProjName;

	@ApiModelProperty("预算科目ID")
	private Long budgetId;

	@ApiModelProperty("预算科目名称")
	private String budgetName;

	@ApiModelProperty("预付账款支付单据编号")
	@NotBlank(message = "预付账款支付单据编号不能为空")
	private String advanceNo;

	@ApiModelProperty("预付账款退回单据编号")
	private String advanceNoBack;
	@ApiModelProperty("预付账款冲销单据编号")
	private String advanceNoCharge;

	@ApiModelProperty("预付账款类别0：协议支付，1：预付退回")
	@NotNull(message = "预付账款类别0：协议支付，1：预付退回不能为空")
	private Integer advanceType;

	@ApiModelProperty("预付账款付款方")
	private String advancePayer;

	@ApiModelProperty("预付账款付款方id")
	private Long advancePayId;

	@ApiModelProperty("预付账款收款方")
	@NotBlank(message = "预付账款收款方不能为空")
	private String advanceColer;

	@ApiModelProperty("预付账款收款方id")
	@NotNull(message = "预付账款收款方id不能为空")
	private Long advanceColId;

	@ApiModelProperty("预付账款发生金额")
	@NotNull(message = "预付账款发生金额不能为空")
	private BigDecimal advanceAmt;

	@ApiModelProperty("预付账款发生日期")
	@NotNull(message = "预付账款发生日期不能为空")
	@JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
	private Date advanceOpenTime;

	@ApiModelProperty("支付之后进行冲抵/退回操作，剩余的金额")
	private BigDecimal advanceBalance;

	@ApiModelProperty("冲销状态0：未冲销；1：已冲销")
	@NotNull(message = "冲销状态0：未冲销；1：已冲销不能为空")
	private Integer writeoffStatus;

	@ApiModelProperty("经办人")
	@NotBlank(message = "经办人不能为空")
	private String handler;

	@ApiModelProperty("经办人id")
	@NotNull(message = "经办人id不能为空")
	private Long handlerId;

	@ApiModelProperty("支付方式0：现金，1：银行（默认：银行)")
	private Integer payType;

	@ApiModelProperty("支付账户账户ID")
	private Long payAccountId;

	@ApiModelProperty("支付账户名称")
	@NotBlank(message = "支付账户名称不能为空")
	private String payAccountName;

	@ApiModelProperty("支付账户开户行")
	private String payAccountBank;

	@ApiModelProperty("支付账户号码")
	private String payAccountNo;

	@ApiModelProperty("票据影像：存文件路径")
	private String image;

	@ApiModelProperty("影像名称")
	private String imageName;

	@ApiModelProperty("上传时间")
	private Date uploadTime;

	@ApiModelProperty("备注")
	private String remark;

	@ApiModelProperty("预留字段1")
	private String reserveOne;

	@ApiModelProperty("预留字段2")
	private String reserveTwo;

	@ApiModelProperty("预留字段3")
	private String reserveThree;

	@ApiModelProperty("创建时间")
	private Date createTime;

	@ApiModelProperty("修改时间")
	private Date updateTime;
	@ApiModelProperty("对方银行账户名称")
	private String colBankName;


	@ApiModelProperty("对方银行账户开户行")
	private String colBank;

	@ApiModelProperty("对方银行账户号码")
	private String colBankNo;

	@ApiModelProperty("审核状态 0：未审核（默认）；1：审核")
	@NotNull(message = "审核状态 0：未审核（默认）；1：审核不能为空")
	private Boolean auditStatus;

	@ApiModelProperty("删除状态 0. 正常 1. 删除")
	private Integer delFlag;
}
